import { Authority } from '../request'

const { post, get } = Authority
// 标签新增
export const saveOrUpdate = params => post('/tag/saveOrUpdate', params)

// 标签选择列表
export const tagSelectList = params => get('/tag/querySelectList', { params })

// 标签列表
export const tagQueryList = params => get('/tag/queryList', { params })

// 通用页面-列表删除
export const tagDelete = params => post('/tag/delete', params)

////////////////文章


// 文章新增
export const articleSaveOrUpdate = params => post('/article/saveOrUpdate', params)

// 文章列表
export const articleList = params => get('/open/article/queryList', { params })

// 通用页面-列表删除
export const articleDelete = params => post('/article/delete', params)

//详情页面数据
export const getByIdData = (params) => get('/open/article/getById',{params})